import yaml

from pathlib import Path

base_dir = Path(__file__).resolve().parent.parent

config_path = base_dir / 'config/conf.yaml'

try:
    
    with open(config_path, 'r') as file:
        
        app_config = yaml.safe_load(file)

except (FileNotFoundError, yaml.YAMLError) as exc:
    
    raise (f"配置文件 {config_path} 读取或解析出错: {exc}")





